package com.oocl.scan.model;

import com.alibaba.fastjson.JSON;

import java.util.Objects;

public class Relationship {

  private String type;
  private String from;
  private String fromModule;
  private String to;
  private String toModule;
  private Object description;

  public Relationship() {}

  public Relationship(String type, String from, String fromModule, String to,
      String toModule) {
    this.type = type;
    this.from = from;
    this.fromModule = fromModule;
    this.to = to;
    this.toModule = toModule;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getFrom() {
    return from;
  }

  public void setFrom(String from) {
    this.from = from;
  }

  public String getFromModule() {
    return fromModule;
  }

  public void setFromModule(String fromModule) {
    this.fromModule = fromModule;
  }

  public String getTo() {
    return to;
  }

  public void setTo(String to) {
    this.to = to;
  }

  public String getToModule() {
    return toModule;
  }

  public void setToModule(String toModule) {
    this.toModule = toModule;
  }

  public Object getDescription() {
    return description;
  }

  public void setDescription(Object description) {
    this.description = description;
  }

  @Override
  public String toString() {
    return "Relationship : "+JSON.toJSONString(this);
  }
}
